package com.welsmann.framework.combiner;

import java.util.Vector;

/**
 * 静态资源文件路径生成工具类
 * @author Welsmann
 *
 */
public class StaticFileBuilder {

	public StaticFileBuilder() {
		
	}
	
	public Vector<String> build(String type, String project, String files, String prefix) {
		Vector<String> staticFiles = new Vector<String>();
		String slash = StringUtil.getSlash();
		if (StringUtil.validateString(type, project, files)) {
			 String[] strFileArray = files.split(",");
			 for (String f : strFileArray) {
				 staticFiles.add(type + project + slash + f + "." + prefix);
			 }
		}
		return staticFiles;
	}
	
}
